package com.qd.common.flow.domain.approval;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 审批
 *
 * @author sjk
 * @create 2024-02-21 14:32
 * @since 1.0.0
 */
@Data
public class ApprovalDTO {
    /**
     * 任务ID
     */
    private String taskId;
    /**
     * 审批状态
     */
    private Integer approvalState;
    /**
     * 扩展信息
     */
    private JsonNode extendJson;
    /**
     * 审批结果
     */
    private String approvalResult;
    /**
     * 审批人ID
     */
    private String approval;
    /**
     * 审批人
     */
    private String approvalName;
    /**
     * 审批人所在单位ID
     */
    private String approvalOrg;
    /**
     * 审批人所在单位
     */
    private String approvalOrgName;
    /**
     * 审批时间
     */
    private LocalDateTime approvalDate;

    public void freeData() {
        this.taskId = null;
        this.approvalState = null;
        this.approvalResult = null;
        this.approval = null;
        this.approvalName = null;
        this.approvalOrg = null;
        this.approvalDate = null;
        this.approvalOrgName = null;
        this.extendJson = null;
    }
}